package com.syzg.common.config;

public class SysProperties
{
  public static MyProperties Properties = MyProperties.getInstance("application.properties");

  public static String ROOTPATH = "";

  public static final int PAGESIZE = Properties.getIntProperty("base.pageSize");
  public static final int PAGESTYLE = Properties.getIntProperty("base.pageStyle");
  public static final String DEBUG = Properties.getProperty("base.debug");
  public static final String LOGIN_OBJECT = "LOGIN_OBJECT";
  public static String PERSON_MODULE_LIST = "MODULE_LIST";
  public static final String LOGIN_VERIFY_CODE = "VERIFY_CODE";
  public static final String CUSTOM_PAGE_SIZE = "CUSTOM_PAGE_SIZE";
  public static final String APP_DATA_MODULE_MAP = "APP_DATA_MODULE_MAP";
  public static final String OPEN_TYPE = Properties.getProperty("base.openType");
  public static String ROOT_URL;
  public static String ADMIN_LOGIN = Properties.getProperty("base.adminName");
  public static String ADMIN_ID = Properties.getProperty("base.adminId");
  public static String ADMIN_PASSWORD = Properties.getProperty("base.adminPassword");
  public static String DEFAULT_PASSWORD = Properties.getProperty("base.defaultPassword");
  public static String MUST_LOGIN = Properties.getProperty("base.mustLogin");
  public static String SPRING_CONTEXT_FILE = Properties.getProperty("spring.context.file");
  public static String JNI_PATH;
  public static String SYSTEM_TYPE = Properties.getProperty("system.type");
  public static boolean LOGIN_CAPTCHA = Boolean.parseBoolean(Properties.getProperty("base.login.captcha"));
  public static int LOGIN_FAILURE_TIMES = Integer.parseInt(Properties.getProperty("base.login.failure.times"));
  public static long LOGIN_FAILURE_LOCKED_TIME = Long.parseLong(Properties.getProperty("base.login.failure.locked.time"));
  public static boolean LOGIN_SINGLE = Boolean.parseBoolean(Properties.getProperty("base.login.single"));
  
	/**
	 * 在线用户列表 key
	 */
	public static final String USER_ONLINE_LIST = "USER_ONLINE_LIST";
	/**
	 * 登录session key
	 */
	public static final String USER_SESSION_KEY = "LOGIN_OBJECT";
	/**
	 * session列表 key
	 */
	public static final String USER_SESSION_LIST = "USER_SESSION_LIST";

}